#ifndef SQTHREAD_H
#define SQTHREAD_H
#include <QThread>
#include <QSqlQuery>

class sqThread : public QThread
{
    Q_OBJECT

public:
    sqThread();
    ~sqThread();

public slots:
    void setSqls(QStringList);
    bool getLastError();
signals:
    void message(QString);
protected:
    void run();
private:

    QStringList sqls;
    bool error_state;
    //QSqlQuery *qrO;
    //QSqlQuery *qrM;
};
#endif // SQTHREAD_H
